#ifndef __STRING_STRNCPY_H__
#define __STRING_STRNCPY_H__

/**
 *  strncpy()
 *  zkopiruje <src> do <dest> o <count> znacich
 */
char *strncpy(char *dest,const char *src,unsigned count) {
char *tmp = dest;
  while (count-- && (*dest++ = *src++) != '\0');
    return tmp;
}

#endif
